import { post, postWithLoadTip } from '@/utils/request';

export function select(uId: any, pId: any): any {
  return post(`/pxks-api/train/exam/paper/select/${uId}/${pId}`, undefined);
}

export function cheat(id: any): any {
  return post(`/pxks-api/train/exam/paper/cheat/${id}`, undefined);
}

export function submit(uId: any, data: any): any {
  return postWithLoadTip(`/pxks-api/train/exam/paper/submit/${uId}`, data);
}

export function userAnswerPage(data: any): any {
  return post(`/pxksgl-api/train/exam/paper/answerForUser/page`, data);
}

export function answerRead(id: any): any {
  return post(`/pxksgl-api/train/exam/paper/answer/read/${id}`, undefined);
}
